|
HSL 2.0 framework
Description of the framework
|
Basic class for UDP communication. More...
Inherited by hsl20_4_udp.hsl20_4_udp.Broadcast, hsl20_4_udp.hsl20_4_udp.Multicast, and hsl20_4_udp.hsl20_4_udp.Unicast
Public Member Functions | |
| def | __init__ (self, framework, context_map) |
| Constructor. More... | |
| def | set_on_data (self, callback) |
| Sets a callback for data reception. More... | |
| def | set_on_error (self, callback) |
| Sets a callback in case of an error. More... | |
| def | start_server (self) |
| Starts the UDP receive server. More... | |
Basic class for UDP communication
| def hsl20_4_udp.hsl20_4_udp.UdpBase.__init__ | ( | self, | |
| framework, | |||
| context_map | |||
| ) |
Constructor
| def hsl20_4_udp.hsl20_4_udp.UdpBase.set_on_data | ( | self, | |
| callback | |||
| ) |
Sets a callback for data reception
| callback | Callback
|
| def hsl20_4_udp.hsl20_4_udp.UdpBase.set_on_error | ( | self, | |
| callback | |||
| ) |
Sets a callback in case of an error
Parameters for callback:
| callback | Callback |
| def hsl20_4_udp.hsl20_4_udp.UdpBase.start_server | ( | self | ) |
Starts the UDP receive server
1.8.13